from django.conf.urls.defaults import patterns, include, url
from views import *

urlpatterns = patterns('',
	
	url(r'^$', societies),
	
	url(r'^(?P<slug>.+?)/blog/(?P<page>\d+)', society_blog),
	url(r'^(?P<slug>.+?)/blog', society_blog),
	
	url(r'^(?P<slug>.+?)/events/(?P<page>\d+)', society_events),
	url(r'^(?P<slug>.+?)/events', society_events),
	
	url(r'^(?P<slug>.+?)/join', join),
	url(r'^(?P<slug>.+?)/leave', leave),
	
	url(r'^(?P<slug>.+?)/settings', settings),
	url(r'^(?P<slug>.+?)/fb_callback', facebook_callback),
	url(r'^(?P<slug>.+?)/fb_access_token', facebook_access_token),
	
	url(r'^(?P<slug>.+?)/members', members),
	
	url(r'^(?P<slug>.+?)$', society),
)
